<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .zcp{background:#f1f1f1; color:#000}
        .zc{display: inline-block; padding:10px; border-radius:10px; background:#f00; color:yellow}

        .srp{background:#f1f1f1; color:#000}
        .sr{display: inline-block; padding:10px; border-radius:10px; background:blue; color:green}
    </style>
</head>
<body>
    <ul>
        <% datas.forEach(item=>{%>
            <% if(item.type == 1){%>
                <li>
                    <p class="zcp"><%= item.time %></p>
                    <div>
                        <%= item.evnetName %>
                        <span class="zc">支出</span>
                        <span><%= item.moneny %></span>
                    </div>
                </li>
            <% } else {%>
                <li>
                    <p class="srp"><%= item.time %></p>
                    <div>
                        <%= item.evnetName %>
                        <span class="sr">收入</span>
                        <span><%= item.moneny %></span>
                    </div>
                </li>
            <%}%>
        <% })%>
    </ul>
</body>
</html>